/**
 * 
 */
package org.ycsoft.MetroidReader;


/**
 * Represents a segment of a shortest path
 * @author Cherif YAYA
 *
 */
public class PathRecord {
	private StopRecord previous;
	private StopRecord arrival;
	private boolean isAfoot;  //indicates whether one has to travel by foot
	private LineRecord line;
	private int length;
	
	public void setPrevious(StopRecord depart){
		previous = depart;
	}
	
	public StopRecord getPrevious(){
		return previous;
	}
	
	public void setArrival(StopRecord arrival){
		this.arrival = arrival;
	}
	
	public StopRecord getArrival(){
		return this.arrival;
	}
	
	
	public void setAfoot(boolean afoot){
		this.isAfoot = afoot;
	}
	
	public boolean getAfoot(){
		return isAfoot;
	}
	
	public void setLine(LineRecord line){
		this.line = line;
	}
	
	public LineRecord getLine(){
		return this.line ;
	}
	
	public void setLength(int length){
		this.length = length;
	}
	
	public int getLength(){
		return this.length;
	}
	
	public String toString(){
		return previous + "->" + arrival +"|" +line;
	}
}
